"""RFB (vnc) protocol exceptions."""

class RfbException(Exception):
    """Base exception class for RFB protocol."""

class CommunicationError(RfbException):
    """Error with protocol's I/O"""

class ProtocolError(RfbException):
    """General error happend during protocol."""

class ServerError(ProtocolError):
    """Server-generated error"""

class SecurityError(ProtocolError):
    """Security-related error"""

# vim: set sts=4 sw=4 et :
